/*
 * XML Type:  XComboBox
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XComboBox
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget;


/**
 * An XML XComboBox(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public interface XComboBox extends com.seedwill.xul.widget.XInput
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XComboBox.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("xcombobox8e87type");
    
    /**
     * Gets the "text" element
     */
    java.lang.String getText();
    
    /**
     * Gets (as xml) the "text" element
     */
    org.apache.xmlbeans.XmlString xgetText();
    
    /**
     * True if has "text" element
     */
    boolean isSetText();
    
    /**
     * Sets the "text" element
     */
    void setText(java.lang.String text);
    
    /**
     * Sets (as xml) the "text" element
     */
    void xsetText(org.apache.xmlbeans.XmlString text);
    
    /**
     * Unsets the "text" element
     */
    void unsetText();
    
    /**
     * Gets array of all "items" elements
     */
    com.seedwill.xul.core.XPairItem[] getItemsArray();
    
    /**
     * Gets ith "items" element
     */
    com.seedwill.xul.core.XPairItem getItemsArray(int i);
    
    /**
     * Returns number of "items" element
     */
    int sizeOfItemsArray();
    
    /**
     * Sets array of all "items" element
     */
    void setItemsArray(com.seedwill.xul.core.XPairItem[] itemsArray);
    
    /**
     * Sets ith "items" element
     */
    void setItemsArray(int i, com.seedwill.xul.core.XPairItem items);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "items" element
     */
    com.seedwill.xul.core.XPairItem insertNewItems(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "items" element
     */
    com.seedwill.xul.core.XPairItem addNewItems();
    
    /**
     * Removes the ith "items" element
     */
    void removeItems(int i);
    
    /**
     * Gets the "selectedItemChangedEvt" element
     */
    com.seedwill.xul.widget.XEvent getSelectedItemChangedEvt();
    
    /**
     * True if has "selectedItemChangedEvt" element
     */
    boolean isSetSelectedItemChangedEvt();
    
    /**
     * Sets the "selectedItemChangedEvt" element
     */
    void setSelectedItemChangedEvt(com.seedwill.xul.widget.XEvent selectedItemChangedEvt);
    
    /**
     * Appends and returns a new empty "selectedItemChangedEvt" element
     */
    com.seedwill.xul.widget.XEvent addNewSelectedItemChangedEvt();
    
    /**
     * Unsets the "selectedItemChangedEvt" element
     */
    void unsetSelectedItemChangedEvt();
    
    /**
     * Gets the "selectedIndexChangedEvt" element
     */
    com.seedwill.xul.widget.XEvent getSelectedIndexChangedEvt();
    
    /**
     * True if has "selectedIndexChangedEvt" element
     */
    boolean isSetSelectedIndexChangedEvt();
    
    /**
     * Sets the "selectedIndexChangedEvt" element
     */
    void setSelectedIndexChangedEvt(com.seedwill.xul.widget.XEvent selectedIndexChangedEvt);
    
    /**
     * Appends and returns a new empty "selectedIndexChangedEvt" element
     */
    com.seedwill.xul.widget.XEvent addNewSelectedIndexChangedEvt();
    
    /**
     * Unsets the "selectedIndexChangedEvt" element
     */
    void unsetSelectedIndexChangedEvt();
    
    /**
     * Gets the "defaultSelectedItem" element
     */
    com.seedwill.xul.core.XPairItem getDefaultSelectedItem();
    
    /**
     * True if has "defaultSelectedItem" element
     */
    boolean isSetDefaultSelectedItem();
    
    /**
     * Sets the "defaultSelectedItem" element
     */
    void setDefaultSelectedItem(com.seedwill.xul.core.XPairItem defaultSelectedItem);
    
    /**
     * Appends and returns a new empty "defaultSelectedItem" element
     */
    com.seedwill.xul.core.XPairItem addNewDefaultSelectedItem();
    
    /**
     * Unsets the "defaultSelectedItem" element
     */
    void unsetDefaultSelectedItem();
    
    /**
     * Gets the "defaultSelectedIndex" element
     */
    int getDefaultSelectedIndex();
    
    /**
     * Gets (as xml) the "defaultSelectedIndex" element
     */
    org.apache.xmlbeans.XmlInt xgetDefaultSelectedIndex();
    
    /**
     * True if has "defaultSelectedIndex" element
     */
    boolean isSetDefaultSelectedIndex();
    
    /**
     * Sets the "defaultSelectedIndex" element
     */
    void setDefaultSelectedIndex(int defaultSelectedIndex);
    
    /**
     * Sets (as xml) the "defaultSelectedIndex" element
     */
    void xsetDefaultSelectedIndex(org.apache.xmlbeans.XmlInt defaultSelectedIndex);
    
    /**
     * Unsets the "defaultSelectedIndex" element
     */
    void unsetDefaultSelectedIndex();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.seedwill.xul.widget.XComboBox newInstance() {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.seedwill.xul.widget.XComboBox parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.seedwill.xul.widget.XComboBox parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.seedwill.xul.widget.XComboBox parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XComboBox parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XComboBox parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XComboBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
